package api

import response.base.Res
import response.member.MemberInfo
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * @author BX-Gin
 * @since 2024/6/6 下午12:09
 */
interface MemberApi {
    /**
     * 获取当前用户信息
     * @param empty 无需填写
     * @return Call<Res<MemberInfo.Data>>
     */
    @POST("$PREFIX/info")
    fun getInfo(@Body empty: Map<String, String> = hashMapOf()): Call<Res<MemberInfo.Data>>

    companion object {
        const val PREFIX = "community/member"
    }
}